package com.ruoyi.dzzh.service.impl;

import com.ruoyi.dzzh.mapper.DzzhPtsMapper;
import com.ruoyi.dzzh.mapper.DzzhTaskMapper;
import com.ruoyi.dzzh.service.IDzzhStaticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author：cjt
 * @name：DzzhStaticsServiceImpl
 * @Date：2023/4/8 14:10
 */
@Service
public class DzzhStaticsServiceImpl implements IDzzhStaticsService {

    @Autowired
    private DzzhPtsMapper dzzhPtsMapper;

    @Autowired
    private DzzhTaskMapper dzzhTaskMapper;

    @Override
    public Map<String, Object> staticsAll() {
        Map<String,Object> map = new HashMap<>();
        map.put("sortByXq", dzzhPtsMapper.sortByXq());
        map.put("sortByUserYear",dzzhTaskMapper.sortByUserYear());

        return map;
    }
}
